# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=braa
pkgver=0.82
pkgrel=6
groups=('blackarch' 'blackarch-scanner')
pkgdesc='A mass snmp scanner.'
arch=('x86_64' 'aarch64')
url='http://s-tech.elsat.net.pl/braa/'
license=('GPL-1.0-only')
depends=('glibc')
makedepends=('subversion' 'nasm')
provides=('nbtool' 'dnscat')
#source=("http://s-tech.elsat.net.pl/$pkgname/$pkgname-$pkgver.tar.gz")
source=("http://deb.debian.org/debian/pool/main/b/$pkgname/${pkgname}_${pkgver}.orig.tar.gz")
sha512sums=('8c88d288287a12c19c8d49606c8d2b70531b7f2be1aa3c4ccc6b01739aead751c03c56dc3f1a346b3dd20730a8bd0d30e33167a5f7c676f629348195762e23d4')

build() {
  cd "$pkgname-$pkgver"

  make CFLAGS="$CFLAGS"
}

package() {
  cd "$pkgname-$pkgver"

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README
}

